fix tests and dialyzer