add tests for result length