add tests, coverage 99,33%