Error on testing after changing types