An examination of the emergency escape facility was being conducted and after the upper level over travel test, the hoist malfunctioned and would not operate. During the troubleshooting process it was discovered that a 24 VDC relay had a bad set of contacts and the top landing switch was not making contact properly.