add test to run bin/bna
refactor