updated acceptance test and added comments