Integration test for import log entry
This adds a basic integration test if the log entry was created
correctly and is associated with the correct revision.
Since this test already does use the db this seemed on way to
make sure the entry is added.
The method used to access the test database was customized from
the DatabaseLogEntry::newFromId. I'm a bit unsure if this should
go into core.