unit test improvements
porting more each tests
finish porting 'each' tests