Added helpers for test.