Improved line coverage of the Generation class from 0% to 76.5%

Comment From: markpollack

updated to not use deprecated apis. merged in 528dc0438aede8d63855ce23e4a6cd2b8c2c090e

thanks!