added function test to front-end test