Added api response extension.
Added mocha & finished the response api refactor