Replace assert() with ASSERT_TRUE() / ASSERT_FALSE()

Signed-off-by: Uli Schlachter <psychon@znc.in>