Refactor HR security tests and minimize number of sever starts/stops