This smoke-test the bookkeeping class to check the queries are working
correctly. This is a good way to smoke-test the postgresql compatibility
and enables more complex tests like the yearly closure later.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>