Added unit tests for Widget\ActiveField

unit test from widget\ActiveField Class.
@samdark what you mean with "can fix it in the test" ? do you acknowledge that this is a bug and you would like me to provide new commit to this pull request with the fix to the ``render()`` method of ActiveField, for review? I can do that.