fixing tests in chapt. 8.2.4