pending amount added and tested