Utils for tests