Add some more tests for the functional interface

These are ad-hoc tests in response to bug reports by users
to confirm that Intern is not broken.