Testing parseInt to return correct value