Use strict and warnings in tests.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Localize alarm handler to smaller block.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>