added debug for tests