created books controller and spec file with tests for it