remove lot of duplicate code form tests profiles/projects/positions