adds a couple more tests and fixes test cases for trailing slash