Fix some errors when looking up variables
acceptance tests