test for on(), primarily to test integer size on some unices

(cherry picked from commit 56025b1a400cc111014cc4c9a3bd2571f97145f6)