Remove unnecessary variable assignments from tests

Thanks @josenavas!