Test suite cleanup and refactoring

- more realistic spec test stubs
- starting to throw exceptions in spec tests if a require path is used for a namespace class and vice versa