Added unit tests for ReflectionAPI