Added name to error for rejection
Updated query integration tests