Testing a master cylinder is really easy. Just remove the brake lines and close the holes with port plugs. Then, top off the master cylinder and press on the brake pedal. If the pedal is still soft, then the master cylinder is bad. If the pedal is reacting well, then you have a fluid leak somewhere on the brake lines.