implemented tests