fixed errors in assert statements
changed assert statements to use .contains()