Refactored tests.

Made configuration options easier to override in tests

Added checks for entity too large on write.

Changed default max load size to 100.