fixes #77; also checked for error type to make sure the test passes for the correct reason (and not ENoEntry, for example)