Refactored to biomodeltoolbox and added test