Fix model tests
Separate crypto from auth controller and add crypto tests