Auto create related objects and permissions

Add new step to create permissions for related objects
Fixed above step to use new context model
Fix behave tests