Implement possibility to specify custom assertions