add test, fix target expansion