Fixed compile errors with example project, and copied example into test project.

NOTE: tests are currently broken, but at least they compile