Unit tests: utility methods