added a test util to perform asserts