fix indentation and spacing, automatically
split test data genrator method
fix spacing of test() method
refactor testCodec: add comments, fix logging logic
remove redundant objects
refactor variables in testCodec() method