add eunit tests for interp.erl