test both path errors