test: update hydro to ~0.5.0
lib: code cleanup