Added TestFreeLicenceLookup test & small refactoring for all lookup tests.

commit 6c82a99cd976237b9757efe9d0d4ba225cc598d2
Author: Tymoteusz Jankowski <tymoteusz.jankowski@ext.allegro.pl>
Date:   Thu Nov 6 13:17:42 2014 +0100

    small refactoring for lookups test

commit 3915f04dc8824400656654d9c936ff1f03778029
Author: Tymoteusz Jankowski <tymoteusz.jankowski@ext.allegro.pl>
Date:   Thu Nov 6 12:53:49 2014 +0100

    added TestFreeLicenceLookup test
Merge pull request #499 from xliiv/licence-lookup-test

licence-lookup-test