Added some more test code for function examples.