Writing unittests for the notes database