add result xml file as a parameter
move Trend class to seperate file
add tests for trend
enable unit tests with coverage on Travis