unit tests for gpt.c