Updated code to obey BUILD_TESTING to allow for disabling of test compilation
Merge pull request #617 from Omegaice/master

Updated code to obey BUILD_TESTING to allow for disabling of test compilation