test echo function