Add support for if and if/else expressions in interpreter

- extracts some common test code into a utils package.