corrected bug with 0 division and zero manipulation in the pile
added test template for all the tests