added tests, adapted to methods in process