fixed a leak and added implementation of ifte to tests.peg