Begin alice work
Migrate api context
Add api tests