Add useful goodies for S-expressions

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
Fix tests exit code

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>