Add rspec test to ensure the bracket syntax is using when available