Fixing tests failing through syntax errors