corrected 'assert' and fixed broken assertions :)