Get to 80% test coverage, move around plugin libraries

Created a test infrastructure
Added tests to get to 80% coverage
Moved around plugin files
Added in factories for testing models
Added in travis.yml file and badge in readme