add test and externs