Replaced assert() with assertTrue()

:money_with_wings: