create unitest sample code