[gnl] improve error handling tests