add snippet for test functions