Added 64-bit tests.
Refactored test-main-configurations.sh.
Refactored test-on-device.sh.