Added simple api example to tests.