Move example code into test application