fixed hanging test: timeout added