Add @testWith annotation support

#1151