License lookup

Added and used new lookup which autocomplete assets by *device's* hostname.
Moved lookup tests to seperate file.