Remove deprecated methods from test

just changing deprecated test methods