Made the tests run only when -Ptests is specified. The tests will still compile, but not execute, unless this profile is enabled.