Fixed karma test with loading modules