Merge "apf: Add immediate encoding tests for LI"