Fixed tests by using once