Moved the tests under the main namespace and autoload them.

Closes #478
Merge pull request #536 from stof/autoload_tests

Moved the tests under the main namespace and autoload them.