worker. some logic. tests