refactored features directive test