Turn fields test into mocha unit test
Merge pull request #317 from davidbanham/fields_unit_test

Turn fields test into mocha unit test