added test cases for reflection