added header and error test for create