Replaces test object with By func blocks in acceptance tests