Added tests for port-repository.