beefed up test script, addresses issue #6 for x86 (but not arm yet)