tdd fix compile errors