run test first before build a role