Changed test sample code to variable.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>