Create tests for the javascript