added tests, fixed sam expiration date bug

Fixes #112, includes test for backend, removes legacy contractrecord model, added tests for load_vendor