Replaced assert statement with test_assert()

* Replacing assert statement with function allows to continue checking
  all of the conditions even when one of them fails