fixed bug uploading Data entities, created tests for command line client