fix #454: add tests for macro parameters resolution