A TDD approach using jasmine framework