add more test for function
fixed echo