Fixed bug with test framework and requireJs