Fixed accidentally removed code from tests