Removed unnecessary imports.
Reset pref test dataset sizes to values we used when writing the book.