checking length
added protection from test hangs