use assertTrue instead of assert