Learning tests for the Reflection API