added anonymous class test