finished jasmine tests for chapter4