reducing helper functions for testing relation