Use the client version dynamically in unit tests

When asserting the path in unit tests, use the version within client
instead of a hard-coded value.
Remove unused import