Fix expected return values for object validation