Updated sim_lib with deserializer, added tests for sim_lib and tcp