Singapore plans to test all 16,000 elderly residents of its nursing homes for the coronavirus over the coming weeks, as it edges towards exiting a nationwide lockdown next month.