code for unittest in chap16 developer tools