refactor controllers and tests

changed available copies 220 to 11 in testViewBooks.py