check for display before executing test