fix karma tests
better hack for responseType