[#1] Extract test script to bin/test