Fixed depecreated statements in the test framework