simplify tests for command, add test for detecting full script path