using tests to check methods()