fixed tests and added total percentage amount validation