Tox functionality

Added in automated testing to ready for Jenkins.