added errors and testing works through ch 9.5