Added first simple test for isCheck and move the javascript part of the test into its own file