test code (with working instance examples...)