adding tests and updating copyright