Yes I have thought of that issue also. But I have heard that you can buy stickers that you can affix to the bike stating it is a Class 1 or 2 or whatever you want.
If it was labeled as such I don't think the boarder officer is going to take the bike out for a test run and determine if it can...