Finish basic test for lex function and functions in call chain.

Signed-off-by: Eric Taucher <Researcher0x00@gmail.com>