IMHO: In your case in test it is not too important. But if you use your constants only in this class It would be better to organise their scope with companion object. As an example you can make them private. And only StudenTest will see them. Not anyone class in file