Add better parametrized tests, field samples and code cleanup.
Add more samples, fix chunksize usage and cleanup code.