added test coverage and register test

Since the Hapi team have made it their mission to get any packages 100% unit test, I've tried to follow suit. Thought I'd make the initial step if you were interested in trying to get some test coverage for hapi-swagger. I can add more tests and help out with trying to get it to 100% if interested!