Fixes for in-memory test database on Travis.