Working through issues with jasmine tests