implementing jasmine matchers and tests for angular scopes