Unit test works with database.