Added tests with mock and stubs for qunit's calculator tests