Auto create related objects and permissions

Added new step to created permissions for related objects
Fixed behave tests