Fixed error when passing maxRecords = 0. Fixed tests.
Version bump.