Defined tests for an app with a requirejs config file.
Added support for the requirejs config file. The dependency graph builder was not quite right neither
Tidy up, added some error control