add test, fix compilation