Assorted helpers, especially for testing.
Test helper for ensuring that goals work no matter the order they are applied.