moved phase id aroung in tests, removed print code