Update src/mymodel.js
smarter test branching