Added functional tests for helpers.js and restructured tests directory.