Added config for tests.

Re organised requirements a bit.

install test requirements on travis.