Move tests to basic.c