Adds tests to lfr.js functions - Fixes #12