Add test funtion.  You can now test from within the console by running test