refactored profile tests