Only for tests