use sails.log, add more tests