added sudo to curl command, changed how mortar gem is checked
got unit tests to pass