Added function test to basic.c