added automated tests