develop spec test for mock.js