JSHint parsing added for tests. Tidy up. Removed redundant tests.