added tests for x_() object
refactoring test to centralise commonly used test generators within G