Addign tests for scan_index_forward parameter that was added to models
query and scan functions.