Relaxing uniqueness constraints for mock objects