implemented tests (#27)