added some tests for private methods, didn't finish porting erlang tests