compose tasks method and tests updated