Refactored and improved test suite.
Refactored tests just a bit more to take better advantage of requirejs.