fix dialyzer warnings
add specs for extended dialyzer warnings