Fix unit tests methods and multiple constant definition