Convert tests to casper API