Fixed a hanging test