Added unit tests and updated copyright notice.