modify example in spec to be 0.13 valid

add a `/spec` folder and modify the example to be 0.13 valid.