fixing karma unit to address failing travis build