Adding test from book