Adding test case for when association condition is a proc.