How to test my game on Xbox One

How do I get the project i am working on to be tested on Xbox One? I want to test with the xbox controller and platform. Also, if there is a way to connect my xbox controller to my windows 8.1 laptop and use that to test the game with Xbox controlls tell me please. Is there a way to just test, not publish without the ID@Xbox program? Thank You!

You need to registered on the id@xbox programme:

http://www.xbox.com/en-GB/developers/id

This is an old answer that could use an update. You can use the UWP (Universal Windows Platform) and sideload it onto an Xbox One by packaging it for the windows store in visual studio then loading it onto the console via the local web interface. All you need to do is pay the $20 developer fee to be able to activate dev mode on your xbox. You only need to sign up at id@xbox to gain access to the xbox module and to actually publish your games. But if you just want to tinker, sideloading is the way to proceed.