Prepare for 5.1 release - Test fixes.