Tests for slimerjs exit code