Turn fields test into mocha unit test

No idea if this is desired or not at this stage, but I wanted to get more familiar with the way the project is tested and this was a way to do it.