Test that setup is not called again when context is unchanged
Fix issue with deserialize and parent context