Simplify trim test.