test: add expression transform tests
* test(core): add basic expression tests * test: fix $if test not working properly