test code snippet