adding unit test for Field class
implementing field class