tests for bad path handling