Use REQUIRE with appropriate error messages instead of ASSERT. It seems that there were already others in this class, would be great if you fix them as well.