Added code to exclude testing code from project when build is set to release.