Make the am_xxx function Asserts consistent

When Who What
2024-01-09 23:25:33 Peter Smith (smithpb2250) Closed in commitfest 2024-01 with status: Withdrawn
2023-12-04 09:06:21 John Naylor (john.naylor) Closed in commitfest 2023-11 with status: Moved to next CF
2023-09-18 22:59:10 Peter Smith (smithpb2250) Changed authors to Peter Smith (smithpb2250)
2023-09-18 22:59:10 Peter Smith (smithpb2250) Changed targetversion to 17
2023-09-18 22:58:31 Peter Smith (smithpb2250) Attached mail thread CA+hUKGK2RQh4LifVgBmkHsCYChP-65UwGXOmnCzYVa5aAt4GWg@mail.gmail.com
2023-09-18 22:58:31 Peter Smith (smithpb2250) Created patch record