fixes for lua unit tests when o lua