Fixing Karma tests for angular services and controllers