Fixing Tests

Change-Id: I4ad7da14084589365192ca4267a0c6d9b3f338c6
Adding Tests for thrift.py

Change-Id: Ib49e21cbd4a97926a26c3d0589256d5c50534053