added tests database for travis to work
fixed validations and callbacks to correct order