Implements Unit Test for get/set*s and fix some bugs linked