Improved test coverage for controllers.

Controllers covered by this pull request include,

- `BaseController`
- `AdminNarrativeController`
- `ApiFlagController`

Also fixed are various issues with the table seeders (i.e. primary keys were being set when they shouldn't be and deprecated seeders). Additionally, some models needed assignment guards.