Add test for trailing slash