fix karma requirejs path issues and ensure that jquery can be loaded both in production and test code