added automated testing.