eval: Add test cases

Coverage of eval is now 28.0% (was 2.6%).