check_lookup_table function

Check the result of joining a flat table with a lookup table