add example of synchronous test code