added some timeouts to test code