Fixed "contains" method to pass the jasmine test again