Synchronize send_to_carbon_test/1
Add time based flushing test case
Implement time based flushing of samples