added lua integration testing code