sample testing code for scala