added some very basic unit tests