Added Tinytest tests

Changed the type of the alert code property from Number to String;
added tests for the package using Tinytest (just one test is
outstanding at the moment); just added Travis support to try out the
tests. :-)