Add unit tests for jsonp and fix up module