added junit asserts