Optimize uppercase character tests
Use a `Before` block for tests setup