Updated ResourceWorkFlowBehaviour and fixed specs