Only create "tests" target if tests are defined
Move the package "tests" target creation from atlas_subdir
to
atlas_add_test
. This removes some unnecessary targets for packages without
tests and i.e. cleans up the diagnostics when using ninja -d explain
.