cleanup test get and cast