tdd for classes