add lambda and reference method test