extracted assert function to utils class