tests: work on porting the unit tests