lookup test pass successfully

some refractoring still needs to be done, but test pass and example
works