Added test cases for zero method. Fixed bug