removed unused code
added reflection test