small refactor by creating separate package for intent testing