Core.Model: fixed issue with credit card validation regex.
Test: implemented tests for Core.Model.