Fix tests for xms. Add templates views and urls to xms app.