Add tests for toilet code API views.