Add functional test case for __test__ plugin