Add tests from SVN repository r1438

Omit history intentionally
Add tests directory unconditionally to the build