Add unit_test_scal, fix #17