Added a test for the pass that moves functions to a class.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>