Added unittest to make sure ManagedContext injection works