add expr_value to compute command line

including unit tests for it