Changed so that only one display is created in tests