Add unit tests for eval function