Tests improvement

* json schema for post action_logs is changed
* autocommit=False is used for DB session
* cleaning by DB migration is added to setUp of DbTest
* handling of IntegrityError is added