some test code that is shareable