Add tests for getUserUrl