tests: check for returned size