add unit tests with h2 database