ticket:3 added tests