updated and added test cases for reflection utils