Test of database