Added docs and test for hasfield plugin