add unit tests for Uri and extended class