Adding tests for loaderjs

while analysing test coverage I noticed we weren't performing any tests on the loader.

Now we do!