added more detailed test code and fixed a problem with dot symbols in URIs