Move the testing for gnu into js