Add requirements file.
Fix code style on tests.