Added test for directory to end with '/' for list-resources().