MFC r268436,273243,278806,280920,286971: sh: Add various tests.These new tests from head pass with unmodified stable/10 sh.