Updating testing to allow injection of client and fixing issue were meta data is being capatalised