Api section tests

More server-side testing for the Section API, list, get and create tested (with some fixes)