Added echo function and assertion test.