fixed bug in test assertion