Code style
Tests for BadRequestException