removing unused code
adding more mocha tests for data sync