fixed existing tests for --name option still need to add tests to test the option