Ported over more tests. Works.
Added tests for foreach and if-else.