Added tests for relations for way/relation and a bit of DRYing up.