added test timeout capability