fix undefining 'module' function in robot unit tests if it wasn't set before