implemented jasmine test into assignment Mathfunctions