Better param validation and test for such in ha service