Fix minor errors
Add test for ID check in anomaly_base
Use lexical_cast and try-catch for ID check
Remove unnecessary ifdef for ZooKeeper