Added league index page tests for pagination and searching

Also fixed problem when calling the League class method text search in
league_spec