Fix test and reorder src loading in karma conf