Fixed failing tests in fsagent_spec.rb