Refactored script for testing.
Added tests for normalize_var_avro.
Fixed parameters
Merged changes. Fixed avro schema.
Fixed field names in test