example_test: Use function-style test case

This will be the recommended style of test case going forward.