Add tests for collection hint.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)