fix tests
finish support for #124 with using --target