fixed problem with assertion testing