Add unit tests for DefaultLookupResult

There was some found errors in the tested classes. This commit contains
the fix of those errors.