Include tests for managed object context
Add failure blocks to handle errors better (on write)