added test for error on non-string paths