fix failing test for 0 or negative sizes