Add test and format

Docker-DCO-1.1-Signed-off-by: Yutaka Matsubara <yutaka.matsubara@gmail.com> (github: mopemope)