fix dashboard function test