ticket:5 add tests