[improvement] Support for compile and test scope