Added Unit Test and Added reflection extensions