Some work on the API testcase

- Tests that PATCH actually allows to change each individual field
- Test some results from the API testcase by looking into the DB
- Some more tests when PUTting to a detail resource
Fix strange problem with the schedule step

For some reason, having a max_length was causing an exception
"object of type 'int' has no len()" when updating anything via the API