Added tests to the suite.
Added timeout feature for bad requests or loops.
Added description for the feature timeout.
Prepared for travis.
Fixed refactoring bugs.