Helpers for testing