fix undefined tests variable