Raheem Mostert will test free agency as a restricted free agent rather than work out a multi-year deal in San Francisco.