Fixed bug on tests.