Added unit tests, refactored SesameData class