test compile and link