Rename logic.js to prop.js
Add partial tests