added tests for upload and search using flask testing client