add automated unit tests