implemented tests for yarn