Better tests for scripts with spaces