fixing defend and test2 so that now it compiles