Fixed AMD loader issue with Dojo, updated test