more tests for #367
work on #367 for toplevel methods