Added variable declaration and assignment plus test case.