Added tests and code for pay buttons and total label