[test] Test against trim detection