licence-lookup-test

Added TestFreeLicenceLookup test & small refactoring for all lookup test.

@quamilek could you check it, please?