Making the test func more localized