script line has to end with the test command so it gets the correct exit code back