migrate tests to H2 from HSQLDB and solve the lastCreated timestamp problem