Adds unit tests for surface manager
#124: Unit tests.
Corrections to managers regarding new memory management.
Fixes to memory disposal under error conditions.
[mac] Small fix to copy headers project setting.
[mac] #124: Add new unit tests
[linux] #124: Add new unit tests