Tidy, improve tests for detail view and user seriablize