Added tests

Book and loan dao