start unit testing
add some unit tests
Merge pull request #58 from robjhyndman/unittest

Unit testing