add test to toplevel_instance.rb