Fixed unit tests

* removed "end_time" tests
* Auto setting endtime
* fixed "idle_time" call in tests
* adjusted start time to match <=
* Moved metrics to ORM model
* Fixed output page to reflect merged hash return
* convert tests to use absolute time