Added tests for offline tracking