Added tests around the As formatters and fixed some issues.