Add test for Ranges class