Fixed test
Reverted the declared function and substituted with the 'can' method