testing with mock data and implemented test calc for total