migrate testkit and scala sample