rewrote tests to use requirejs instead of custom loader. fixes #10