tests for two directories in terms of the js script