Added code to create courts linked to a facility and added tests