updating and adding unit tests for the plugin given recent changes to appjs structures