Added jasmine test for toString function.