Add missing deprecated targets. Remove `test` from `check` target since we already have `test-race`. Fixes #2901