added asserts for failure tests