Setup and testing of smart controllers for small-scale district heating networks: An integrated framework