Added test for #1204
Fixed #1204 Bug with toplevel Callables