Added test cases for hasAccess
Fixed bug with join paths with windows slashes