[PLAT-4884] Helper methods for ease in writing test cases.