finish porting tests