add convenience function of 'createmodel'
add test to create a facility for a distributed server