aligned mocha unit tests for fields refactoring