How to stop default/initial started services

Can you try stopping it in the test section? For example:

test
  pre:
    - sudo service mongodb stop; sleep 5

Then start whatever needs that port after that line?