See the programmer's guide and the New Developer FAQ sticky.
You can use sideloads for testing, or, you can upload to the app store and mark it as "beta" and only you will be able to download it. That way you can test things like app settings from GW or GCM.