Broke out assertion helper functions to separate file