add main method and test to shake out bugs
add main method and test to shake out bugs

iychoi/syndicate-core,syndicate-storage/syndicate-core,iychoi/syndicate-core,syndicate-storage/syndicate-core,syndicate-storage/syndicate-core,syndicate-storage/syndicate-core,iychoi/syndicate-core,iychoi/syndicate-core