Add test for updating input

test
Support updating json attribute

Fixes #7
Keep only one file for the directive
new lib
v0.1.9