add foreach and with bindings unit tests