finished porting tests