fix frontend testcases