Fixed tests and a bug where range query was lt seperator.