Moved test files into test/

Wrote unit tests for ploppen.js and added comments.