Regression tests improvements

* Improves Travis configuration to run apache server.
* Fixes imports and form tests.