API updates and some frontend testing

The testing is incomplete, but the few API changes are essential for the admin site.
Check these out :heart_eyes: