Fix dialyzer error and common_test failure