updated assert class and tests