code for yarn testing