more macro authoring utility functions
more tests for macro authoring utility functions