Merge "Add tests and missing functions for rs_allocation APIs."