One of Xing's core tenants is test driven design. There are a number of helpful patterns we've learned to handle testing of a modern SPA webapp.