fixed example test code