ticket:8 Implemented tests